home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20030409-20031118 / 000405_fdc@columbia.edu_Mon Nov 10 10:43:41 2003.msg < prev    next >
Internet Message Format  |  2020-01-01  |  5KB

  1. Path: newsmaster.cc.columbia.edu!not-for-mail
  2. From: Frank da Cruz <fdc@columbia.edu>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Problem with Kermit spawned from Expect script sending files
  5. Date: 10 Nov 2003 15:29:51 GMT
  6. Organization: Columbia University
  7. Lines: 90
  8. Message-ID: <slrnbqvbnf.i67.fdc@sesame.cc.columbia.edu>
  9. References: <f0bb0f39.0311061216.1ba040a0@posting.google.com> <slrnbqlcid.ooo.fdc@sesame.cc.columbia.edu> <f0bb0f39.0311070527.6ce76ffc@posting.google.com> <slrnbqnbfm.380.fdc@sesame.cc.columbia.edu> <f0bb0f39.0311070946.62574f98@posting.google.com> <slrnbqns98.69r.fdc@sesame.cc.columbia.edu> <slrnbqnsgg.856.fdc@sesame.cc.columbia.edu> <f0bb0f39.0311100537.7a4d4faf@posting.google.com>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: sesame.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1068478191 837 128.59.59.56 (10 Nov 2003 15:29:51 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 10 Nov 2003 15:29:51 GMT
  15. User-Agent: slrn/0.9.7.4 (SunOS)
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14661
  17.  
  18. In article <f0bb0f39.0311100537.7a4d4faf@posting.google.com>,
  19. newexpectuser wrote:
  20. : Frank da Cruz <fdc@columbia.edu> wrote:
  21. :>  ...
  22. :> The script fragment above, then, will return to the C-Kermit> prompt because
  23. :> it has no more commands to execute.  Thus you must continue the script
  24. :> to do whatever you want it to do, for example:
  25. :> 
  26. :>   (wait for shell prompt)
  27. :>   lineout "kermit -x"     ; Start Kermit server
  28. :>   rcd somedirectory       ; CD to some directory on the host
  29. :
  30. : I thought this command changed the directory on the remote system.
  31. :
  32. It does.
  33.  
  34. : I have most of this working (including connecting now), however once I
  35. : get connected to the remote server, I want to change into a specific
  36. : directory on the remote server and I tried the rcd and do a ls -ltr
  37. : command, but it gives me my directory where I execute the script
  38. : (local machine) ?
  39. :
  40. If a command does something that surprises you, give a HELP command for
  41. it to see its documentation:
  42.  
  43. C-Kermit>help ls
  44.  
  45. Syntax: LS [ args ]
  46.   Runs "ls" with the given arguments.
  47.  
  48. C-Kermit>help rdirectory
  49.  
  50.   RDIRECTORY is a short form of REMOTE DIRECTORY.
  51.  
  52. C-Kermit>help remote directory
  53.  
  54. Syntax: REMOTE DIRECTORY [ filespec ]
  55.   Asks the Kermit or FTP server to provide a directory listing of the named
  56.   file(s) or if no file specification is given, of all files in its current
  57.   directory.  Synonym: RDIR.
  58.  
  59. C-Kermit>help directory
  60.  
  61. Syntax: DIRECTORY [ switches ] [ filespec [ filespec [ ... ] ] ]
  62.   If LOCUS is REMOTE or LOCUS is AUTO and you have an FTP connection,
  63.   this command is equivalent to REMOTE DIRECTORY (RDIR).  Otherwise:
  64.  
  65.   Lists local files.  The filespec may be a filename, possibly containing
  66.   wildcard characters, or a directory name.  If no filespec is given, all
  67.   files in the current directory are listed.  If a directory name is given,
  68.   all the  files in it are listed.  Multiple filespecs can be given.
  69.   Optional switches:
  70.  
  71.    /BRIEF           List filenames only.
  72.    /VERBOSE       + Also list permissions, size, and date.
  73.    /FILES           Show files but not directories.
  74.    /DIRECTORIES     Show directories but not files.
  75.    /ALL           + Show both files and directories.
  76.    /ARRAY:&a        Store file list in specified array (e.g. \%a[]).
  77.    /PAGE            Pause after each screenful.
  78.    /NOPAGE          Don't pause after each screenful.
  79.    /DOTFILES        Include files whose names start with dot (period).
  80.    /NODOTFILES    + Don't include files whose names start with dot.
  81.    /FOLLOWLINKS     Follow symbolic links.
  82.    /NOFOLLOWLINKS + Don't follow symbolic links.
  83.    /BACKUP        + Include backup files (names end with .~n~).
  84.    /NOBACKUPFILES   Don't include backup files.
  85.    /OUTPUT:file     Store directory listing in the given file.
  86.    /HEADING         Include heading and summary.
  87.    /NOHEADING     + Don't include heading or summary.
  88.    /SUMMARY         Print only count and total size of matching files.
  89.    /XFERMODE        Show pattern-based transfer mode (T=Text, B=Binary).
  90.    /TYPE:           Show only files of the specified type (text or binary).
  91.    /MESSAGE:text    Add brief message to each listing line.
  92.    /NOMESSAGE     + Don't add message to each listing line.
  93.    /NOXFERMODE    + Don't show pattern-based transfer mode
  94.    /ISODATE       + In verbose listings, show date in ISO 8061 format.
  95.    /ENGLISHDATE     In verbose listings, show date in "English" format.
  96.    /RECURSIVE       Descend through subdirectories.
  97.    /NORECURSIVE   + Don't descend through subdirectories.
  98.    /SORT:key        Sort by key, NAME, DATE, or SIZE; default key is NAME.
  99.    /NOSORT        + Don't sort.
  100.    /ASCENDING     + If sorting, sort in ascending order.
  101.    /REVERSE         If sorting, sort in reverse order.
  102.  
  103. Factory defaults are marked with +.  Default for paging depends on SET
  104. COMMAND MORE-PROMPTING.  Use SET OPTIONS DIRECTORY [ switches ] to change
  105. defaults; use SHOW OPTIONS to display customized defaults.
  106.  
  107. - Frank
  108.